<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
        <!-- head 文件 -->
        <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -->
<title><?php echo (C("PLATFORM_NAME")); echo (C("PLATFORM_VERSION")); ?></title>
<meta name="keywords" content="<?php echo ($keywords); ?>" />
<meta name="description" content="<?php echo ($description); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- basic styles -->

<link href="/Public/assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="/Public/assets/css/font-awesome.min.css" />

<!-- 日期CSS -->
<link rel="stylesheet" href="/Public/assets/css/datepicker.css" />
<!-- /.日期CSS -->

<!-- 可编辑表格专用CSS -->
<link rel="stylesheet" href="/Public/assets/css/ui.jqgrid.css" />
<!-- /.可编辑表格专用CSS -->

<!--[if IE 7]>
    <link rel="stylesheet" href="/Public/assets/css/font-awesome-ie7.min.css" />
<![endif]-->

<!-- page specific plugin styles -->

<!-- fonts -->

<!-- ace styles -->

<link rel="stylesheet" href="/Public/assets/css/ace.min.css" />
<link rel="stylesheet" href="/Public/assets/css/ace-rtl.min.css" />
<link rel="stylesheet" href="/Public/assets/css/ace-skins.min.css" />

<!--[if lte IE 8]>
    <link rel="stylesheet" href="/Public/assets/css/ace-ie.min.css" />
<![endif]-->

<!-- inline styles related to this page -->

<!-- ace settings handler -->

<script src="/Public/assets/js/ace-extra.min.js"></script>

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

<!--[if lt IE 9]>
    <script src="/Public/assets/js/html5shiv.js"></script>
    <script src="/Public/assets/js/respond.min.js"></script>
<![endif]-->

<!-- basic scripts -->

<!--[if !IE]> -->

<script src="/Public/assets/js/jquery-2.0.3.min.js"></script>

<!-- <![endif]-->

<!--[if IE]>
    <script src="/Public/assets/js/jquery-2.0.3.min.js"></script>
<![endif]-->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='/Public/assets/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
    <script type="text/javascript">
        window.jQuery || document.write("<script src='/Public/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
    </script>
<![endif]-->

<script type="text/javascript">
    if ("ontouchend" in document)
        document.write("<script src='/Public/assets/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="/Public/assets/js/bootstrap.min.js"></script>
<script src="/Public/assets/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lte IE 8]>
    <script src="/Public/assets/js/excanvas.min.js"></script>
<![endif]-->

<script src="/Public/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
<script src="/Public/assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="/Public/assets/js/jquery.slimscroll.min.js"></script>
<script src="/Public/assets/js/jquery.easy-pie-chart.min.js"></script>
<script src="/Public/assets/js/jquery.sparkline.min.js"></script>
<script src="/Public/assets/js/flot/jquery.flot.min.js"></script>
<script src="/Public/assets/js/flot/jquery.flot.pie.min.js"></script>
<script src="/Public/assets/js/flot/jquery.flot.resize.min.js"></script>

<!-- ace scripts -->

<script src="/Public/assets/js/ace-elements.min.js"></script>
<script src="/Public/assets/js/ace.min.js"></script>

<script type="text/javascript" src="/Public/js/artDialog4.1.7/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/js/artDialog4.1.7/plugins/iframeTools.js"></script>

<script>
    (function (config) {
        config['lock'] = true;
        config['fixed'] = true;
        config['okVal'] = '确定';
        config['cancelVal'] = '取消';
        // [more..]
    })(art.dialog.defaults);
</script>

<!-- 	</head>
        <body> -->
    
    
    <link href="/Public/assets/css/daterangepicker.css" rel="stylesheet">

     <script
    src="/Public/assets/js/date-time/bootstrap-datepicker.min.js"></script>
    <script src="/Public/assets/js/jqGrid/jquery.jqGrid.min.js"></script>
    <script src="/Public/assets/js/jqGrid/i18n/grid.locale-en.js"></script>
    <script type="text/javascript">
        var $path_base = "/";//this will be used in gritter alerts containing images
    </script>

</head>
<body>
    <!-- Google Analytics 代码检查提示 -->
    <!-- <?php if (!$gaIsExist) { ?>
    <div class="alert alert-danger">
            <button data-dismiss="alert" class="close" type="button">
                    <i class="icon-remove"></i>
            </button>
            <i class="icon-remove"></i>
                    你没有添加
            <strong>
                    Google Analytics
            </strong>
    
            , 请检查代码.
            <br>
    </div>
    <?php } ?> -->
    <!-- /Google Analytics 代码检查提示 -->

    <!-- 顶部导航文件 -->
    <div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try {
            ace.settings.check('navbar', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="navbar-container" id="navbar-container">
        <div class="navbar-header pull-left">
            <a href="#" class="navbar-brand">
                <small>
                    <i class="icon-leaf"></i>
                    <?php echo (C("INDEX_HEADER")); ?>
                </small>
            </a><!-- /.brand -->
        </div><!-- /.navbar-header -->

        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">

                <li class="light-blue">
                    <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                        <!-- <img class="nav-user-photo" src="/Public/assets/avatars/user.jpg" alt="Jason's Photo" /> -->
                        <span class="user-info">
                            <small>Welcome,</small>
                            <?php echo (session('nickname')); ?>
                        </span>

                        <i class="icon-caret-down"></i>
                    </a>

                    <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">

                        <li>
                            <a href="/Admin/Admin/logout">
                                <i class="icon-off"></i>
                                Logout
                            </a>
                        </li>
                    </ul>
                </li>
            </ul><!-- /.ace-nav -->
        </div><!-- /.navbar-header -->
    </div><!-- /.container -->
</div>

<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="main-container-inner">
        <a class="menu-toggler" id="menu-toggler" href="#"> <span
                class="menu-text"></span>
        </a>
        <!-- 左边导航栏 -->
        
            <div class="sidebar" id="sidebar">
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'fixed')
        } catch (e) {
        }
    </script>

    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large" style="height: 50px">
            <button class="btn btn-success">
                <i class="icon-signal"></i>
            </button>

            <button class="btn btn-info">
                <i class="icon-pencil"></i>
            </button>

            <button class="btn btn-warning">
                <i class="icon-group"></i>
            </button>

            <button class="btn btn-danger">
                <i class="icon-cogs"></i>
            </button> 
        </div>

        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span> <span class="btn btn-info"></span>
            <span class="btn btn-warning"></span> <span class="btn btn-danger"></span>
        </div>
    </div>
    <!-- #sidebar-shortcuts -->


    <ul class="nav nav-list">
        <?php if(strstr('/Admin/Looks/addRule.html', '/Auth')): ?><li class="active open" <?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)&&!in_array('/Admin/AuthGroup/group',$user_visit_rules)&&!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
            <?php else: ?>

            <li <?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)&&!in_array('/Admin/AuthGroup/group',$user_visit_rules)&&!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                <a href="#" class="dropdown-toggle"> <i class="icon-cog"></i>
                    <span class="menu-text"> 权限设置 </span> <b
                        class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/AuthRule')): ?><li class="active"<?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
                        <?php else: ?>
                        <li <?php if(!in_array('/Admin/AuthRule/rule',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                    <a href="/Admin/AuthRule/rule"> <i
                            class="icon-double-angle-right"></i> 规则列表
                    </a></li>

                    <?php if(strstr('/Admin/Looks/addRule.html', '/AuthGroup')): ?><li class="active" <?php if(!in_array('/Admin/AuthGroup/group',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
                        <?php else: ?>
                        <li <?php if(!in_array('/Admin/AuthGroup/group',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                    <a href="/Admin/AuthGroup/group"> <i
                            class="icon-double-angle-right"></i> 群组列表
                    </a></li>

                    <?php if(strstr('/Admin/Looks/addRule.html', '/AuthUser')): ?><li class="active"<?php if(!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>>
                        <?php else: ?>
                        <li <?php if(!in_array('/Admin/AuthUser/user',$user_visit_rules)): ?>style="display: none"<?php endif; ?>><?php endif; ?>
                    <a href="/Admin/AuthUser/user"> <i
                            class="icon-double-angle-right"></i> 用户列表
                    </a></li>
                </ul>
            </li>
		<!-- 自定义后台菜单 -->
		<?php if(strstr('/Admin/Looks/addRule.html', '/MemberInfo')||strstr('/Admin/Looks/addRule.html', '/MemberInfo')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
        <a href="#" class="dropdown-toggle"> 
            <i class="icon-cog"></i>
            <span class="menu-text"> 会员信息管理 </span>
            <b  class="arrow icon-angle-down"></b>
        </a>
        <ul class="submenu">
            <?php if(strstr('/Admin/Looks/addRule.html', '/MemberInfo')): ?><li class="active">
                <?php else: ?>
                <li><?php endif; ?>
                <a href="/Admin/MemberInfo/index"> 
                    <i class="icon-double-angle-right"></i> 会员信息
                </a>
            </li>

                   
                </ul>
            </li>
<!-- 衣橱 -->
        <?php if(strstr('/Admin/Looks/addRule.html', '/CloserCommodity/editRule')||strstr('/Admin/Looks/addRule.html', '/CloserCommodity/index')||strstr('/Admin/Looks/addRule.html', '/CloserCommodity/addRule')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 商品管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/CloserCommodity/')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/CloserCommodity/index"> 
                                <i class="icon-double-angle-mid"></i> 商品列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- 造型 -->
        <?php if(strstr('/Admin/Looks/addRule.html', '/Looks')||strstr('/Admin/Looks/addRule.html', '/Looks')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 造型管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/Looks')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/Looks/index"> 
                                <i class="icon-modelling"></i> 造型列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- Calendar  -->
        <?php if(strstr('/Admin/Looks/addRule.html', '/Calendar')||strstr('/Admin/Looks/addRule.html', '/Calendar')): ?><li class="active open">
                    <?php else: ?>
                    <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 日历 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/Calendar')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/Calendar/index"> 
                                <i class="icon-calendar"></i> 日历列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- yichu   --> 
        <?php if(strstr('/Admin/Looks/addRule.html', '/CloserCommodity/closer')||strstr('/Admin/Looks/addRule.html', '/CloserCommodity/closer')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 衣橱管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/CloserCommodity/closer')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/CloserCommodity/closer"> 
                                <i class="icon-double-angle-mid"></i> 衣橱列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- yichu   --> 
        <?php if(strstr('/Admin/Looks/addRule.html', '/BhType')||strstr('/Admin/Looks/addRule.html', '/BhType')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 衣橱商品类别管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/BhType')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/BhType"> 
                                <i class="icon-double-angle-mid"></i> 类别列表
                            </a>
                        </li>
                </ul>
            </li>
<!-- BhLabel   --> 
        <?php if(strstr('/Admin/Looks/addRule.html', '/BhLabel')||strstr('/Admin/Looks/addRule.html', '/BhLabel')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 造型类别管理 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/BhLabel')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/BhLabel"> 
                                <i class="icon-double-angle-mid"></i> 类别列表
                            </a>
                        </li>
                </ul>
            </li>

<!-- BhLabel   --> 
        <?php if(strstr('/Admin/Looks/addRule.html', '/ImageMatting')||strstr('/Admin/Looks/addRule.html', '/ImageMatting')): ?><li class="active open">
            <?php else: ?>
            <li><?php endif; ?>
                <a href="#" class="dropdown-toggle"> 
                    <i class="icon-cog"></i>
                    <span class="menu-text"> 图片去背测试 </span>
                    <b  class="arrow icon-angle-down"></b>
                </a>
                <ul class="submenu">
                    <?php if(strstr('/Admin/Looks/addRule.html', '/ImageMatting/index')): ?><li class="active">
                        <?php else: ?>
                        <li><?php endif; ?>
                            <a href="/Admin/ImageMatting/index"> 
                                <i class="icon-double-angle-mid"></i> 上传图片去背
                            </a>
                        </li>
                </ul>
            </li>





    </ul>


    <!-- /.nav-list -->

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
           data-icon2="icon-double-angle-right"  data-icon3="icon-double-angle-mid"  
           data-icon4="icon-modelling"  data-icon5="icon-calendar"  data-icon6="icon-yichu" ></i>
    </div>

    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
    </script>
</div>
        
        <div class="main-content">
            <!-- 面包屑 -->
            
                <div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
        try {
            ace.settings.check('breadcrumbs', 'fixed')
        } catch (e) {
        }
    </script>

    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i> 
            <?php echo ($groupName); ?>
        </li>
        <li><?php echo ($moduleName); ?></li>
        <li class="active"><?php echo ($actionName); ?></li>
    </ul>
    <!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
        <form class="form-search">
            <span class="input-icon"> <input type="text"
                                             placeholder="Search ..." class="nav-search-input"
                                             id="nav-search-input" autocomplete="off" /> <i
                                             class="icon-search nav-search-icon"></i>
            </span>
        </form>
    </div>
    <!-- #nav-search -->
</div>
            
            <!-- 页面内容 -->
            <div class="page-content">
                
    <div class="row">
        <div class="col-xs-12">
            <div class="row-fluid">
                <div class="span12">
                    <div class="widget-box">
                        <div class="widget-header header-color-blue">
                            <h5 class="lighter">
                                添加造型<span class="red">(带*为必填项)</span>
                            </h5>
                        </div>
                        <div class="widget-body">
                            <div class="widget-main no-padding">
                                <form class="form-horizontal"  name="saveForm" id="saveForm"  method="post"  action="<?php echo U('insertRule');?>"   encType="multipart/form-data">
                                    <table class="table table-striped table-bordered table-hover">
                                        <tbody>
                                            <!-- <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>所属用户ID<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <input type="text" id="uid" name="uid" value="999" disabled="disabled" class="col-xs-10 col-sm-4" />
                                                </td>
                                            </tr> -->
                                            <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>造型类型<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <!-- <input type="text" id="cate" name="cate" value="" class="col-xs-10 col-sm-4" /> -->
                                                    <select  id="cate"  name="cate"  disabled="disabled">
                                                        <!-- <option value="1">普通用户的造型</option> -->
                                                        <option value="2">管理员的造型灵感</option>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>标签<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <!-- <input type="text" id="type" name="type" value="" class="col-xs-10 col-sm-4" /> -->
                                                    <select  id="test"  name="type">
                                                        <?php if(is_array($_listopt)): $i = 0; $__LIST__ = $_listopt;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$opt): $mod = ($i % 2 );++$i;?><option  value ="<?php echo ($opt["id"]); ?>"  ><?php echo ($opt["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>造型合成图片<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <img style="display: none;width:400px" id="img" name="img">
                                                    <input type="file" name="p_img" id="p_img">
                                                    <span class="middle control-label red">&nbsp;&nbsp;图片建议尺寸：1200x1400像素</span>
                                                    <input type="hidden" id="p_new_pic" name="p_new_pic">
                                                    <iframe style="display: none;" id="upload_img" name="upload_img"></iframe>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>状态<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                  <!--   <input type="text" id="status" name="status" value="" class="col-xs-10 col-sm-4" /> -->
                                                   <input type="radio" name="status" value="1"  checked >启用
                                                   <input type="radio" name="status" value="0" >禁用
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>名称<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <input type="text" id="name" name="name" value="" class="col-xs-10 col-sm-4" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>附注<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <input type="text" id="memo" name="memo" value="" class="col-xs-10 col-sm-4" />
                                                </td>
                                            </tr>
                                           <!--  <tr>
                                                <td class="no-padding-right" width="15%">
                                                    <label class="control-label"><small>关联图片<span class="red">*</span></small></label>
                                                </td>
                                                <td>
                                                    <input type="text" id="sub_imgs" name="sub_imgs" value="" class="col-xs-10 col-sm-4" />
                                                </td>
                                            </tr> -->
                                        </tbody>
                                    </table>
                                    <table class="table table-striped table-bordered table-hover" id="answer">
                                        <tbody>
                                            <tr>
                                                <td class="no-padding-right" width="15%">

                                                </td>
                                                <td>
                                                    <button class="btn btn-success" type="button" onclick="checkSubmit();">
                                                        <i class="icon-ok bigger-110"></i>
                                                        提交
                                                    </button>
                                                    <button class="btn btn-warning" type="button" onclick="returnButton({});">
                                                        <i class="icon-undo bigger-110"></i>
                                                        返回
                                                    </button>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div><!-- /.row -->

    <script type="text/javascript">
        jQuery(function ($) {
            //提交Form
            checkSubmit = function () {
                var uid = $("#uid").val();
                var type = $("#type").val();
                var img = $("#img").val();
                var status = $("#status").val();
                var name = $("#name").val();
                var memo = $("#memo").val();
                var sub_imgs = $("#sub_imgs").val();
                var no = $("#no").val();
                if (uid == '') {
                    art.dialog.alert("用户ID不能为空");
                    return false;
                }
                if (type == '') {
                    art.dialog.alert("所属类型不能为空");
                    return false;
                }
                if (name == '') {
                    art.dialog.alert("名称不能为空");
                    return false;
                }
                if (memo == '') {
                    art.dialog.alert("备注不能为空");
                    return false;
                } 
                if (no == '') {
                    art.dialog.alert("编号不能为空");
                    return false;
                }
                $("#saveForm").attr('action', "<?php echo U('insertRule');?>");
                $("#saveForm").attr('target', '_self'); 
                $("form[name=saveForm]").submit();
            }

            returnButton = function () {
                location.href = "/Admin/Looks/index";
            }
        });
        $("#p_img").change(function() {
                $("#saveForm").attr('action', "<?php echo U('uploadImg');?>");
                $("#saveForm").attr('target', 'upload_img');
                $("#saveForm").submit();
            });
    </script>

            </div>
            <!-- /.page-content -->
        </div>
        <!-- /.main-content -->
        <!-- 设置容器 -->
        
            <!-- <div class="ace-settings-container" id="ace-settings-container">
    <div class="btn btn-app btn-xs btn-warning ace-settings-btn"
         id="ace-settings-btn">
        <i class="icon-cog bigger-150"></i>
    </div>

    <div class="ace-settings-box" id="ace-settings-box">
        <div>
            <div class="pull-left">
                <select id="skin-colorpicker" class="hide">
                    <option data-skin="default" value="#438EB9">#438EB9</option>
                    <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                    <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                    <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                </select>
            </div>
            <span>&nbsp; Choose Skin</span>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-navbar" /> <label class="lbl"
                   for="ace-settings-navbar"> Fixed Navbar</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-sidebar" /> <label class="lbl"
                   for="ace-settings-sidebar"> Fixed Sidebar</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-breadcrumbs" /> <label class="lbl"
                   for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-rtl" /> <label class="lbl" for="ace-settings-rtl">
                Right To Left (rtl)</label>
        </div>

        <div>
            <input type="checkbox" class="ace ace-checkbox-2"
                   id="ace-settings-add-container" /> <label class="lbl"
                   for="ace-settings-add-container"> Inside <b>.container</b>
            </label>
        </div>
    </div>
</div>
 -->
        
    </div>
    <!-- /.main-container-inner -->

    <!-- 到顶部按钮 -->
    
        <a href="#" id="btn-scroll-up"
   class="btn-scroll-up btn btn-sm btn-inverse"> <i
        class="icon-double-angle-up icon-only bigger-110"></i>
</a>
    
</div>
<!-- /.main-container -->

</body>
</html>